import request from '@/utils/request'

export function getAllRefund() {
  return request({
    url: '/refund/all',
    method: 'get'
  })
}

export function updateRefundState(id, state) {
  return request({
    url: '/refund/',
    method: 'put',
    params: {
      orderId: id,
      state: state
    }
  })
}
